/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

大屏数据查询接口
陕西苹果大屏数据查询接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>
#import <JDCloudOCSDKIndustrydata/IndustrydataApiModel.h>


@implementation IndustrydataGetLargeScreenDataRequest
-(id) initWithRegion:(NSString *)regionId
region:(NSString*)region
industry:(NSString*)industry
startDate:(NSString*)startDate
endDate:(NSString*)endDate
firstIndex:(NSString*)firstIndex
secondIndex:(NSString*)secondIndex { 
    self.regionId = regionId;
    self.region = region;
    self.industry = industry;
    self.startDate = startDate;
    self.endDate = endDate;
    self.firstIndex = firstIndex;
    self.secondIndex = secondIndex;
    return self;
}

-(id) initWithRegion:(NSString *)regionId
             version:(NSString *)version
region:(NSString*)region
industry:(NSString*)industry
startDate:(NSString*)startDate
endDate:(NSString*)endDate
firstIndex:(NSString*)firstIndex
secondIndex:(NSString*)secondIndex { 
    self.regionId = regionId;
    self.version = version;
    self.region = region;
    self.industry = industry;
    self.startDate = startDate;
    self.endDate = endDate;
    self.firstIndex = firstIndex;
    self.secondIndex = secondIndex;
    return self;
}
-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    NSMutableDictionary *superObjectDic = [super dictionary];
    if(superObjectDic && [superObjectDic count]>0)
    {
        [result addEntriesFromDictionary:superObjectDic];
    }
    if([self region])
    {
        [result setValue:[self region] forKey:@"region"];
    }
    if([self industry])
    {
        [result setValue:[self industry] forKey:@"industry"];
    }
    if([self startDate])
    {
        [result setValue:[self startDate] forKey:@"startDate"];
    }
    if([self endDate])
    {
        [result setValue:[self endDate] forKey:@"endDate"];
    }
    if([self firstIndex])
    {
        [result setValue:[self firstIndex] forKey:@"firstIndex"];
    }
    if([self secondIndex])
    {
        [result setValue:[self secondIndex] forKey:@"secondIndex"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.region = [dictionary objectForKey:@"region"];
    self.industry = [dictionary objectForKey:@"industry"];
    self.startDate = [dictionary objectForKey:@"startDate"];
    self.endDate = [dictionary objectForKey:@"endDate"];
    self.firstIndex = [dictionary objectForKey:@"firstIndex"];
    self.secondIndex = [dictionary objectForKey:@"secondIndex"];
    return self;
} 

@end
@implementation IndustrydataGetLargeScreenDataResult
-(id) initWithStatus:(NSNumber*) status
        message:(NSString*)message
        data:(RegionIndustryDataList*)data { 
    self.status = status;               
    self.message = message;               
    self.data = data;               
    return self;
}
-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self message])
    {
        [result setValue:[self message] forKey:@"message"];
    }
    if([self data])
    {
        [result setValue:[[self data] dictionary]forKey:@"data"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.status = [dictionary objectForKey:@"status"];
    self.message = [dictionary objectForKey:@"message"];
    self.data = [[RegionIndustryDataList alloc]initWithDic:[dictionary objectForKey:@"data"]];
    return self;
} 

@end
  
@implementation IndustrydataGetLargeScreenDataResponse
-(NSMutableDictionary*) dictionary
{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init]; 
    if([self requestId])
    {
        [result setValue:[self requestId] forKey:@"requestId"];
    } 
    if([self result])
    {
        
        [result setValue:[[self result] dictionary] forKey:@"result"];
    }
    if([self error])
    {
        
        [result setValue:[[self error] dictionary] forKey:@"error"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary
{
    
    self.requestId = [dictionary objectForKey:@"requestId"];
IndustrydataGetLargeScreenDataResult* result = [[IndustrydataGetLargeScreenDataResult alloc]initWithDic:[dictionary objectForKey:@"result"]];
    self.result = result;
    ServiceError* error = [[ServiceError alloc]initWithDic:[dictionary objectForKey:@"error"]];
    self.error = error;
    return self;
}

-(id) initWithRequestId:(NSString*) requestId
                  error:(ServiceError*) error
                 result:(IndustrydataGetLargeScreenDataResult*) result
{
    self.error = error;
    self.result =result;
    self.requestId = requestId;
    return self;
}

@end
 
